package com.bang.springcloud.provider.hystrix;

import com.bang.springcloud.provider.api.UserFeignApi;
import com.bang.springcloud.provider.domain.dto.UserDto;
import org.springframework.stereotype.Component;

/**
 * @ClassName: UserFeignHystrix
 * @author: BANG
 * @Date: 2019/12/03 14:06
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
@Component
public class UserFeignHystrix implements UserFeignApi {
    @Override
    public UserDto get(Long userId) {
        return new UserDto().setName("default").setPassword("default");
    }
}
